package com.nuoniu.sibanyun.controller.erp.in;


import com.nuoniu.sibanyun.common.BaseController;
import com.nuoniu.sibanyun.common.result.HttpResult;
import com.nuoniu.sibanyun.service.erp.in.IInInventoryUnitGroupService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author baiqiang
 * @since 2020-11-23
 */
@RestController
@RequestMapping("/erp/inInventoryUnitGroup")
@Api(value = "物料-计量单位", tags = "物料-计量单位")
public class InInventoryUnitGroupController extends BaseController {

    @Autowired
    private IInInventoryUnitGroupService inInventoryUnitGroupService;

    @GetMapping("list")
    @ApiOperation("通过物料ID 查询 物料-计量单位 转换率")
    public HttpResult listInInventoryUnitGroupVo(Integer inInventoryId) {
        return HttpResult.ok(inInventoryUnitGroupService.listInInventoryUnitGroupVo(inInventoryId));
    }

}
